home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 41.zip
/
BS1 part 41
/
Amigatool v1.5.adf
/
check.readme
< prev
next >
Wrap
Text File
|
1988-01-20
|
2KB
|
61 lines
DiskChecker 1.0 Copyright 1989 C. Harald Koch. All Rights Reserved.
C. Harald Koch
260 Wellesley St. E.
Toronto, ON Canada
M4X 1G6
chk@gpu.utcs.toronto.edu
Permission is granted to distribute, modify, or use this program in
whole or in part, so long as this copyright notice remains intact.
This program may not be sold for profit without permission.
Thanks to Dave Haynie for the original idea, which was based on his original
version of DiskSalv. Some of the code is originally from that program.
Thanks to Matt Dillon for his SIGBREAK routines (break.c) and for reams of
insight into the innards of Amiga programming.
What is DiskChecker?
I often copy software onto floppies to take home from work or for archival
purposes. Every once in a while, I would find that something had been
written incorrectly to disk. Finally, I got tired of this, so I wrote
DiskChecker.
DiskChecker will read every sector on a disk, reporting any read errors
found. To check a disk:
1> DiskChecker [-v|q] <device-name>
where device-name is the name of a disk device (DF0:, FF0:, DH0:, RAD:, etc).
DiskChecker will print statistics about the device, and then read through
each sector on the disk. It will report any errors encountered by error
number. In addition, if the error is a valid trackdisk.device error,
DiskChecker will print a descriptive error message also. DiskChecker will
abort if a CTRL-C or CTRL-D is typred.
OPTIONS:
-q - perform check quietly; only report errors encountered.
-v - perform check verbosely; print every sector checked.
BEWARE: DiskChecker tries to make certain sanity checks about devices being
checked. It will not let you check CON:, for example. HOWEVER, these checks
are far from perfect. You will crash your machine if you try to check SER:,
PAR:, or PRT:, for example. Make sure the device statistics printed look
reasonable before proceeding.
COMPILATION NOTES:
DiskChecker uses some structures that are new to the 1.3 header files. (The
strucures have always existed; the header files have been reorganized to
make accessing them from C easier). It currently requires libraries/dos.h,
libraries/dosextens.h, and libraries/filehandler.h from the 1.3Includes disk.
Please send me any bug reports, enhancements, suggestions, jelly beans, etc.
C. Harald Koch
09-March-89